﻿<UserControl
    x:Class="MetroTipi.PreferencesUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MetroTipi"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Converters="using:MetroTipi.Converters"
    x:Name="PrefUC"
    mc:Ignorable="d"
    d:DesignHeight="100"
    d:DesignWidth="400">

    <UserControl.Resources>
        <Converters:DebugConverter x:Key="DebugConverter"/>
    </UserControl.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" x:Uid="login" VerticalAlignment="Center"/>
        <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=Identifiant,ElementName=PrefUC, Mode=TwoWay}" Margin="10,2,0,2" VerticalAlignment="Center" MinWidth="100"/>

        <TextBlock Grid.Row="1" Grid.Column="0" x:Uid="password" VerticalAlignment="Center"/>
        <PasswordBox Grid.Row="1" Grid.Column="1" Password="{Binding Path=Password,ElementName=PrefUC, Mode=TwoWay}" Margin="10,2,0,2" VerticalAlignment="Center" MinWidth="100"/>
    </Grid>
</UserControl>
